package cn.gcjxsc.common.data.wx.redpack;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * 查询红包结果
 *
 * @author pumbaa
 * @since 1.0
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "xml")
public class QueryRedPackResponse extends QueryResponse{
    /**
     * 签名
     */
    private String sign;
    /**
     * 错误代码描述
     */
    private String err_code_des;
    /**
     * 商户订单号
     */
    private String mch_billno;
    /**
     * 商户号
     */
    private String mch_id;
    /**
     * 红包单号
     */
    private String detail_id;
    /**
     * 红包状态
     */
    private String status;
    /**
     * 发放类型
     */
    private String send_type;
    /**
     * 红包类型
     */
    private String hb_type;
    /**
     * 红包个数
     */
    private String total_num;
    /**
     * 红包金额
     */
    private String total_amount;
    /**
     * 失败原因
     */
    private String reason;
    /**
     * 红包发送时间
     */
    private String send_time;
    /**
     * 红包退款时间
     */
    private String refund_time;
    /**
     * 红包退款金额
     */
    private String refund_amount;
    /**
     * 祝福语
     */
    private String wishing;
    /**
     * 活动描述
     */
    private String remark;
    /**
     * 活动名称
     */
    private String act_name;

    /**
     * 裂变红包领取列表
     */
    private HBList hblist;


    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlRootElement(name = "hblist")
    public static class HBList{
        private List<HBInfo> hbinfo;

        public List<HBInfo> getHbinfo() {
            return hbinfo;
        }

        public void setHbinfo(List<HBInfo> hbinfo) {
            this.hbinfo = hbinfo;
        }
    }

    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlRootElement(name = "hblist")
    public static class HBInfo {
        /**
         * 领取红包的Openid
         */
        private String openid;
        /**
         * 金额
         */
        private String amount;
        /**
         * 接收时间
         */
        private String rcv_time;
        public String getOpenid() {
            return openid;
        }

        public void setOpenid(String openid) {
            this.openid = openid;
        }

        public String getAmount() {
            return amount;
        }

        public void setAmount(String amount) {
            this.amount = amount;
        }

        public String getRcv_time() {
            return rcv_time;
        }

        public void setRcv_time(String rcv_time) {
            this.rcv_time = rcv_time;
        }
    }


    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getErr_code_des() {
        return err_code_des;
    }

    public void setErr_code_des(String err_code_des) {
        this.err_code_des = err_code_des;
    }

    public String getMch_billno() {
        return mch_billno;
    }

    public void setMch_billno(String mch_billno) {
        this.mch_billno = mch_billno;
    }

    public String getMch_id() {
        return mch_id;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public String getDetail_id() {
        return detail_id;
    }

    public void setDetail_id(String detail_id) {
        this.detail_id = detail_id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getSend_type() {
        return send_type;
    }

    public void setSend_type(String send_type) {
        this.send_type = send_type;
    }

    public String getHb_type() {
        return hb_type;
    }

    public void setHb_type(String hb_type) {
        this.hb_type = hb_type;
    }

    public String getTotal_num() {
        return total_num;
    }

    public void setTotal_num(String total_num) {
        this.total_num = total_num;
    }

    public String getTotal_amount() {
        return total_amount;
    }

    public void setTotal_amount(String total_amount) {
        this.total_amount = total_amount;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getSend_time() {
        return send_time;
    }

    public void setSend_time(String send_time) {
        this.send_time = send_time;
    }

    public String getRefund_time() {
        return refund_time;
    }

    public void setRefund_time(String refund_time) {
        this.refund_time = refund_time;
    }

    public String getRefund_amount() {
        return refund_amount;
    }

    public void setRefund_amount(String refund_amount) {
        this.refund_amount = refund_amount;
    }

    public String getWishing() {
        return wishing;
    }

    public void setWishing(String wishing) {
        this.wishing = wishing;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAct_name() {
        return act_name;
    }

    public void setAct_name(String act_name) {
        this.act_name = act_name;
    }

    public HBList getHblist() {
        return hblist;
    }

    public void setHblist(HBList hblist) {
        this.hblist = hblist;
    }
}
